//头部显示隐藏
define(function  (require, exports, module) {
    function show(){
        $("#showChange").mouseover(function () {
            var picture = document.getElementById("logout");
            var showChange = document.getElementById("showChange");
            var bottom = document.getElementById("bottomId");
            var top = document.getElementById("topId");
            enterStyle(top,bottom,picture);// 维持
            picture.onmouseover=function(){// 滑入弹出层
                enterStyle(top,bottom,picture);
                picture.onmouseout=function(){// 弹出层滑出
                    getOutStyle(top,picture,bottom)
                }
            }
            showChange.onmouseout=function(){// 外层滑出
                getOutStyle(top,picture,bottom)
            }
        })
    }
    function enterStyle(top,bottom,picture) {
        top.style.display="block";
        bottom.style.display="none";
        picture.style.display="block";
    }
    function getOutStyle(top,picture,bottom) {
        top.style.display="none";
        picture.style.display="none";
        bottom.style.display="block";
    }
    exports.show = show;
})